
package cn.iocoder.yudao.module.infra.controller.monitor;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "监控")
@RestController
@Validated
public class MonitorController {

    @GetMapping(value = "/servicemonitor/heartbeat")
    @Operation(summary = "心跳")
    public CommonResult<Boolean> heartbeat() {
        return success(true);
    }


}
